// Vue.component('v-select',VueSelect.VueSelect)
let insertSalaryapp =new Vue({

        el:'#insertSalaryapp',
        data:{
            salary: []
        },
        methods:{

            insertSalaryapp:function () {
                    alert('提交成功，请控制台看值');
                    let staffId = $('#staffId').val();
                    let salary = $('#salary').val();
                    let cardNo = $('#cardNo').val();
                    let level = $('#level').val();
                    let state = $('#state').val();
                    let allPerformance = $('#allPerformance').val();
                    let absenceCount = $('#absenceCount').val();
                    let holiday = $('#holiday').val();

                    console.log(staffId);
                    console.log(salary);
                    console.log(cardNo);
                    console.log(level);
                    console.log(state);
                    console.log(allPerformance);
                    console.log(absenceCount);
                    console.log(holiday);

                    $.ajax({
                        url:'/portal/salary/insert',
                        type:'post',
                        data:{
                                staffId:staffId,
                                salary:salary,
                                cardNo:cardNo,
                                level:level,
                                state:state,
                                allPerformance:allPerformance,
                                absenceCount:absenceCount,
                                holiday:holiday
                        },
                        success:function (r) {
                                if(r.state == 2000){
                                        alert("发布问题成功");
                                }else {
                                        alert(r.message);
                                }
                        },
                        error:function () {
                                alert("程序运行出错，请打开浏览器的控制台检查错误，如果提示500错误，还需要检查服' +\n" +
                                    "                            '务器端的控制台！");
                        }
                    })

            }
        },
        create:function () {

        }

})